package com.ys.栈的链表模拟;



/**
 * 描述:
 *
 * @author CodeYang
 * @version 2020/12/26 9:41
 */
public class Test {

    public static void main(String[] args) {

        LinkedListStack<String> stack = new LinkedListStack<>();
        stack.push("1");
        stack.push("2");
        stack.push("3");
        stack.push("4");
        System.out.println("栈顶:"+stack.peek());
        while (!stack.isEmpty()){
            System.out.println(stack.pop());
        }

    }
}
